package cn.com.winning.ecare.activity;

import cn.com.winning.ecare.common.MyApplication;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;

/**关于我们-公司介绍
 * @author Administrator
 *
 */
public class Companycontent extends Activity {
	private TextView tv_comContent = null; 
	private ImageButton menuButton;
	private ImageButton mainselected;
	private Companycontent oThis = this;
	MyApplication myApplication;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.companycontent);
		myApplication = (MyApplication) getApplication();
		myApplication.addActivity(this);
		// 初始化view
		findView();

		// 点击事件
		setOnClick();
	}
	
	private void setOnClick()
	{
		menuButton.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				
				oThis.onBackPressed();
			}
		});
		mainselected.setOnClickListener(new OnClickListener()
		{

			@Override
			public void onClick(View view)
			{
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClass(oThis, Mainmean.class);
				startActivity(intent);
				oThis.finish();
			}
		});
	}

	private void findView()
	{
		menuButton = (ImageButton) findViewById(R.id.menuButton);
		mainselected = (ImageButton) this.findViewById(R.id.mainselected);
	}
}
